import React from "react"
import "./header.css"
import {Icon} from "antd-mobile"
import {withRouter} from "react-router-dom"
@withRouter
class Header extends React.Component{
    goback(){
       
        this.props.history.go(-1)
    }
    render(){
     
        return(
            <div className="login-header">
                     <Icon type="left" className="login-main-leftIcon" onClick={this.goback.bind(this)}/>
                     <div className="loginText">{this.props.title}</div>
                     <span className="LoginRight"></span>
             </div>
        )
    }
}

export default Header